import request from "../../request/request.js"

// 获取验证码
export function getVerificationCode(phone) {
  return request({
    url: '/register/getVerificationCode',
    method: 'POST',
    data: {
      phone
    }
  })
}

// 注册
export function register(phone, code, password, confirmPassword) {
  return request({
    url: '/register/register',
    method: 'POST',
    data: {
      phone,
      code,
      password,
      confirmPassword
    }
  })
}